package com.CST.controller.cb;

import com.CST.common.api.Response;
import com.CST.dto.cb.DateDTO;
import com.CST.service.cb.IAllocationCoefficientService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "系数")
@RequestMapping("/allocationCoefficient")
public class AllocationCoefficientController {
    
    @Autowired
    private IAllocationCoefficientService allocationCoefficientService;
    
    @PostMapping("/insertCoefficient")
    @ApiOperation("插入系数表")
    public Response insertCoefficient(@RequestBody DateDTO dateDTO){
        return allocationCoefficientService.insertCoefficient(dateDTO);
    }
    
}
